
public class Agent {
	
	private StrategyType stragedy;
	private double totalPayoff;

	public Agent(StrategyType stragedy){
		this.stragedy = stragedy;
	}

	public void pay(double cost){
		this.totalPayoff -= cost;
		}

	public StrategyType getStragedy(){
		return this.stragedy;
	}

	public double getPayoff(){
		return this.totalPayoff;
	}
	
	public void setPayoff(double payoff){
		if(payoff == 0){
			totalPayoff = 0;
		}
		else{
			totalPayoff += payoff;
		}
	}

	public void reward(double payoff){
		this.totalPayoff += payoff;
	}


}
